package com.carlinfo.userscenter.common.util;

import java.util.Enumeration;
import java.util.Iterator;
import java.util.ResourceBundle;
import java.util.Set;

public class ConstatFinalUtil
{
	public static final ResourceBundle BUNDLE = ResourceBundle.getBundle("userscenter");

	public static String ALL_STR = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

	public static String DATE_FORMAT = "yyyy-MM-dd";

	public static String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

	public static void main(String[] args)
	{
		ResourceBundle bundle = ResourceBundle.getBundle("userscenter");
		Enumeration<String> enu = bundle.getKeys();

		while (enu.hasMoreElements())
		{
			String key = enu.nextElement();
			System.out.println(key + "==循环1=枚举==" + bundle.getString(key));
		}

		Set<String> keySet = bundle.keySet();

		for (Iterator iterator = keySet.iterator(); iterator.hasNext();)
		{
			String key = (String) iterator.next();
			System.out.println(key + "==循环2=迭代器=" + bundle.getString(key));
		}

		for (String key : keySet)
		{
			System.out.println(key + "==循环3=增强for循环=" + bundle.getString(key));
		}
	}
}
